package deng.ejbtx.ejb.order;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;

public class Order {
	private String id;
	private Date purchaseDate;
	private List<OrderDetail> orderDetail;
	
	public Order() {
		id = UUID.randomUUID().toString();
		purchaseDate = new Date();
		orderDetail = new ArrayList<OrderDetail>();
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getPurchaseDate() {
		return purchaseDate;
	}
	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}
	public List<OrderDetail> getOrderDetail() {
		return orderDetail;
	}
	public void setOrderDetail(List<OrderDetail> orderDetail) {
		this.orderDetail = orderDetail;
	}
	
	
}
